package net.huashitong.ssydt.common.entity.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.sys.entity.SsSysBas;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.08.23
 */
@Api(value = "Area", description = "地区对象")
public class AreaVo implements Serializable {

    private static final long serialVersionUID = 2525912368230425020L;

    @ApiModelProperty(value = "地区id，例: 35")
    private String id;//地区id

    @ApiModelProperty(value = "地区名称，例: 福建省")
    private String name;//地区名

    @ApiModelProperty(value = "地区完整代码，例：350000")
    private String code;//地区完整代码

    public AreaVo(SsSysBas ssSysBa) {
        this.id = ssSysBa.getDictValue();
        this.name = ssSysBa.getDictName();
        this.code = ssSysBa.getAttr2();
    }

    public AreaVo() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
